#!usr/bin/env python
# -*- coding:utf-8 _*-
"""
@author:zhengxin
@file: 025_reverse_order.py
@time: 2024/12/19  15:53
# @describe:
"""

"""
    给一个不多于5位的正整数，要求：一、求它是几位数，二、逆序打印出各位数字
"""
def reverse_order():
    num = 12345
    s = str(num)
    print(len(s))
    print(s[::-1])


reverse_order()